<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box img{
            width: 50px;
            height: 50px;
    
        }
    </style>
</head>
<body>
    <div class="box">
        淘宝二维码
        <img src="../../../web/img/bg.jpg" alt="">
        <i class="close-btn">×</i>
    </div>
    <script>
        //  点击 i 标签 box的 样式隐藏 

        
        let i=document.querySelector('i');
        let div=document.querySelector('div')
        i.onclick=function(){
            div.style.display='none'
        }
    </script>
</body>
</html>